<%@ page language="java" import="java.util.*,java.text.*"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>日视图</title>
		<script defer="defer" language="JavaScript" type="text/javascript"
			src="<%=basePath%>worklog/My97DatePicker/WdatePicker.js"></script>
		<link rel="stylesheet"
			href="<%=basePath%>worklog/My97DatePicker/skin/WdatePicker.css"
			type="text/css"></link>
		<SCRIPT type="text/javascript">
		    function pickedFunc(){
			var date = document.getElementById("worklog.date").innerHTML;
			window.location="<%=basePath%>worklog/dateView_worklog.action?date="+date;
			}
		</SCRIPT>
	</head>

	<body>
		<s:form action="save_worklog" namespace="/worklog" method="post">
			<table width="80%" border="0" cellpadding="0" cellspacing="1"
				align="left">
				<tr bgcolor="#a8c7ce">
					<td width="15%">
						今日日程：
					</td>
					<td>
						<span id="worklog.date"> <%
 	SimpleDateFormat setDateFormat = new SimpleDateFormat(
 				"yyyy-MM-dd");
 		String temp = setDateFormat.format(Calendar.getInstance()
 				.getTime());
 %> <%=temp%> </span>
						<img
							onclick="WdatePicker(
							{el:'worklog.date',
							 vel:'date',
							 dateFmt:'yyyy-MM-dd',
							 onpicked:pickedFunc
							})"
							src="worklog/My97DatePicker/skin/datePicker.gif" width="16"
							height="22">

						<input type="hidden" name="worklog.date" id="date"
							value="<%=temp%>">
					</td>
				</tr>
				<tr>
					<td colspan="2">
							<FCK:editor instanceName="worklog.content" basePath="/fckeditor" >
		 ${worklog.content }
			</FCK:editor>
					</td>
				</tr>
				<tr bgcolor="#a8c7ce">
					<td colspan="2">
						<s:submit value="保存"></s:submit>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="color: red" align="center">
						<s:actionmessage />
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>
